<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<table width="100%"  style="font-size: 23px;padding: 0;text-align: center;">
	<tr><td style="text-align:center">Admin Users Detail</td></tr>
</table>

<s:form action="updateAdminUser?p=1&adminusertype=4" method="post">
<!--   onsubmit="return ValidateIdentifier()"> -->

<table>
<tr><td><b>Profile :</b>
<s:iterator value="user">
<s:hidden name="uuid"></s:hidden>
<s:textfield name="usertype" label="User Type" readonly="true"/>
<s:textfield name="firstname" label="First Name" />
<s:textfield name="lastname" label="Last Name" />
<s:textfield name="emailId" label="UserId/EmailId" readonly="true"/>
<s:password key="password" label="Password" />
<s:password key="confirmPassword" label="Confirm Password" />
</s:iterator>
</td>
</tr>
<tr><td>Permission :</td></tr>
<tr>
<td>
<s:iterator value="rolenames">

<s:checkbox name="roleUuid" fieldValue="%{uuid}" label="%{roleName}"/>
</s:iterator>
</td>
</tr>
<s:submit value="UpdateProfile" align="center" />
</table>

</s:form>
<script type="text/javascript">
if (document.location.protocol == 'file:') {
	alert("The examples might not work properly on the local file system due to security settings in your browser. Please use a real webserver.");
}
function ValidateIdentifier()
{
var password=document.forms["updateUser"]["password"].value;
var confirmPassword=document.forms["updateUser"]["confirmPassword"].value;
if (password==null || password=="")
  {
  alert("Enter a Password");
  return false;
  }
else(confirmPassword==null||confirmPassword=="")
	{
	alert("Enter a ConfirmPassword");
	  return false;
	}
}
</script>